package com.alameda.provider.info;

import com.alameda.info.api.JobInfoProvider;
import com.alameda.info.dto.JobInfoDTO;
import com.alameda.info.vo.JobLogVO;
import com.alameda.service.info.JobInfoService;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * 定时任务信息 同步接口层 具体实现
 *
 * @author Lv
 * @date 2024/06/10
 */
@DubboService
public class JobInfoProviderImpl implements JobInfoProvider {

    @Autowired
    private JobInfoService jobInfoService;

    /**
     * 查询定时任务信息
     *
     * @param jobInfoDTO 定时任务信息查询对象
     * @return
     */
    @Override
    public IPage<JobLogVO> listJobInfo(JobInfoDTO jobInfoDTO) {
        return jobInfoService.listJobInfo(jobInfoDTO);
    }
}
